package mathgame.ctrl;

import java.util.HashMap;
import java.util.Map;

// Factory used when we change "state" of the program.
public final class ControlFactory {

    Controller controller;

    public enum Control {
        CONTROLLER
    }

    private final static Map<Control, Object> ctrl = new HashMap<Control, Object>();
    static{
        ctrl.put(Control.CONTROLLER, new Controller());
    }

    public static Controller getController(){
        return Controller.getController();
    }
}